Optimal. Leaf size=97 \[ \frac {a \sin ^5(c+d x)}{5 d}+\frac {a \sin ^6(c+d x)}{6 d}-\frac {2 a \sin ^7(c+d x)}{7 d}-\frac {a \sin ^8(c+d x)}{4 d}+\frac {a \sin ^9(c+d x)}{9 d}+\frac {a \sin ^{10}(c+d x)}{10 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2915, 12, 90}
\begin {gather*} \frac {a \sin ^{10}(c+d x)}{10 d}+\frac {a \sin ^9(c+d x)}{9 d}-\frac {a \sin ^8(c+d x)}{4 d}-\frac {2 a \sin ^7(c+d x)}{7 d}+\frac {a \sin ^6(c+d x)}{6 d}+\frac {a \sin ^5(c+d x)}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 90
Rule 2915
Rubi steps
\begin {align*} \int \cos ^5(c+d x) \sin ^4(c+d x) (a+a \sin (c+d x)) \, dx &=\frac {\text {Subst}\left (\int \frac {(a-x)^2 x^4 (a+x)^3}{a^4} \, dx,x,a \sin (c+d x)\right )}{a^5 d}\\ &=\frac {\text {Subst}\left (\int (a-x)^2 x^4 (a+x)^3 \, dx,x,a \sin (c+d x)\right )}{a^9 d}\\ &=\frac {\text {Subst}\left (\int \left (a^5 x^4+a^4 x^5-2 a^3 x^6-2 a^2 x^7+a x^8+x^9\right ) \, dx,x,a \sin (c+d x)\right )}{a^9 d}\\ &=\frac {a \sin ^5(c+d x)}{5 d}+\frac {a \sin ^6(c+d x)}{6 d}-\frac {2 a \sin ^7(c+d x)}{7 d}-\frac {a \sin ^8(c+d x)}{4 d}+\frac {a \sin ^9(c+d x)}{9 d}+\frac {a \sin ^{10}(c+d x)}{10 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 87, normalized size = 0.90 \begin {gather*} -\frac {a (3150 \cos (2 (c+d x))-525 \cos (6 (c+d x))+63 \cos (10 (c+d x))-7560 \sin (c+d x)+1680 \sin (3 (c+d x))+1008 \sin (5 (c+d x))-180 \sin (7 (c+d x))-140 \sin (9 (c+d x)))}{322560 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.25, size = 120, normalized size = 1.24
method | result | size |
risch | \(\frac {3 a \sin \left (d x +c \right )}{128 d}-\frac {a \cos \left (10 d x +10 c \right )}{5120 d}+\frac {a \sin \left (9 d x +9 c \right )}{2304 d}+\frac {a \sin \left (7 d x +7 c \right )}{1792 d}+\frac {5 a \cos \left (6 d x +6 c \right )}{3072 d}-\frac {a \sin \left (5 d x +5 c \right )}{320 d}-\frac {a \sin \left (3 d x +3 c \right )}{192 d}-\frac {5 a \cos \left (2 d x +2 c \right )}{512 d}\) | \(119\) |
derivativedivides | \(\frac {a \left (-\frac {\left (\sin ^{3}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{9}-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{21}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{105}\right )+a \left (-\frac {\left (\sin ^{4}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{10}-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{20}-\frac {\left (\cos ^{6}\left (d x +c \right )\right )}{60}\right )}{d}\) | \(120\) |
default | \(\frac {a \left (-\frac {\left (\sin ^{3}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{9}-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{21}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{105}\right )+a \left (-\frac {\left (\sin ^{4}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{10}-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{20}-\frac {\left (\cos ^{6}\left (d x +c \right )\right )}{60}\right )}{d}\) | \(120\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 72, normalized size = 0.74 \begin {gather*} \frac {126 \, a \sin \left (d x + c\right )^{10} + 140 \, a \sin \left (d x + c\right )^{9} - 315 \, a \sin \left (d x + c\right )^{8} - 360 \, a \sin \left (d x + c\right )^{7} + 210 \, a \sin \left (d x + c\right )^{6} + 252 \, a \sin \left (d x + c\right )^{5}}{1260 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 95, normalized size = 0.98 \begin {gather*} -\frac {126 \, a \cos \left (d x + c\right )^{10} - 315 \, a \cos \left (d x + c\right )^{8} + 210 \, a \cos \left (d x + c\right )^{6} - 4 \, {\left (35 \, a \cos \left (d x + c\right )^{8} - 50 \, a \cos \left (d x + c\right )^{6} + 3 \, a \cos \left (d x + c\right )^{4} + 4 \, a \cos \left (d x + c\right )^{2} + 8 \, a\right )} \sin \left (d x + c\right )}{1260 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.77, size = 136, normalized size = 1.40 \begin {gather*} \begin {cases} \frac {8 a \sin ^{9}{\left (c + d x \right )}}{315 d} + \frac {4 a \sin ^{7}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{35 d} + \frac {a \sin ^{5}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{5 d} - \frac {a \sin ^{4}{\left (c + d x \right )} \cos ^{6}{\left (c + d x \right )}}{6 d} - \frac {a \sin ^{2}{\left (c + d x \right )} \cos ^{8}{\left (c + d x \right )}}{12 d} - \frac {a \cos ^{10}{\left (c + d x \right )}}{60 d} & \text {for}\: d \neq 0 \\x \left (a \sin {\left (c \right )} + a\right ) \sin ^{4}{\left (c \right )} \cos ^{5}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.51, size = 118, normalized size = 1.22 \begin {gather*} -\frac {a \cos \left (10 \, d x + 10 \, c\right )}{5120 \, d} + \frac {5 \, a \cos \left (6 \, d x + 6 \, c\right )}{3072 \, d} - \frac {5 \, a \cos \left (2 \, d x + 2 \, c\right )}{512 \, d} + \frac {a \sin \left (9 \, d x + 9 \, c\right )}{2304 \, d} + \frac {a \sin \left (7 \, d x + 7 \, c\right )}{1792 \, d} - \frac {a \sin \left (5 \, d x + 5 \, c\right )}{320 \, d} - \frac {a \sin \left (3 \, d x + 3 \, c\right )}{192 \, d} + \frac {3 \, a \sin \left (d x + c\right )}{128 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.70, size = 71, normalized size = 0.73 \begin {gather*} \frac {\frac {a\,{\sin \left (c+d\,x\right )}^{10}}{10}+\frac {a\,{\sin \left (c+d\,x\right )}^9}{9}-\frac {a\,{\sin \left (c+d\,x\right )}^8}{4}-\frac {2\,a\,{\sin \left (c+d\,x\right )}^7}{7}+\frac {a\,{\sin \left (c+d\,x\right )}^6}{6}+\frac {a\,{\sin \left (c+d\,x\right )}^5}{5}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________